<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
        <style>
            @import "<?= Yii::app()->request->baseUrl; ?>/lib/dojo-release-1.7.1/dijit/themes/claro/claro.css";
            @import "<?= Yii::app()->request->baseUrl; ?>/lib/dojo-release-1.7.1/dojo/resources/dojo.css";
            @import "<?= Yii::app()->request->baseUrl; ?>/lib/dojo-release-1.7.1/dojox/grid/resources/Grid.css";
            @import "<?= Yii::app()->request->baseUrl; ?>/lib/dojo-release-1.7.1/dojox/grid/resources/claroGrid.css";
            @import "<?= Yii::app()->request->baseUrl; ?>/css/app.css";
        </style>
        <script type="text/javascript" src="<?= Yii::app()->request->baseUrl; ?>/lib/maqetta/maqetta.js"></script>
        <script type="text/javascript" data-dojo-config="'async':true,'parseOnLoad':true,'packages':[{'name':'clipart','location':'../../clipart'},{'name':'shapes','location':'../../shapes'},{'name':'jquery-ui','location':'../../jquery-ui'},{'name':'yui','location':'../../yui'}]" src="<?= Yii::app()->request->baseUrl; ?>/lib/dojo-release-1.7.1/dojo/dojo.js"></script>
        <script type="text/javascript" src="<?= Yii::app()->request->baseUrl; ?>/lib/maqetta/States.js"></script>
        <script type="text/javascript">
                      require(["dijit/dijit"]);
            require(["dojo/parser"]);
            require(["dijit/layout/BorderContainer"]);
            require(["dijit/layout/ContentPane"]);
            require(["dijit/layout/TabContainer"]);
            require(["dijit/MenuBar"]);
            require(["dijit/PopupMenuBarItem"]);
            require(["dijit/MenuItem"]);
            require(["dijit/Menu"]);
            require(["dojo/data/ItemFileReadStore"]);
            require(["dijit/Tree"]);
            require(["dijit/layout/AccordionContainer"]);
            require(["dijit/form/Form"]);
            require(["dijit/TitlePane"]);
            require(["dojox/io/xhrScriptPlugin"]);
            require(["dojox/grid/DataGrid"]);
            require(["dijit/form/Button"]);
            require(["dijit/form/SimpleTextarea"]);
            require(["dijit/form/TextBox"]);
            require(["dojo/data/ItemFileReadStore"]);
            require(["dijit/form/CheckBox"]);
            require(["dijit/Calendar"]);
            require(["dojox/validate"]);
            require(["dijit/form/ValidationTextBox"]);
        </script>
        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
        <![endif]-->

        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body class="claro" dvFlowLayout="true" data-davinci-ws="collapse" dvStates="{'Strange':{'origin':true}}" id="myapp">

        <div class="container" id="page">

            <div id="header">
                <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
                <?php $this->widget('zii.widgets.CMenu', array(
                    'items' => array(
                        array('label' => 'Administration Panel', 'url' => array('/admin'))
                    )
                )); ?>
            </div><!-- header -->

            <div id="mainmenu">
                <?php
                $this->widget('zii.widgets.CMenu', array(
                    'items' => array(
                        array('label' => 'Home', 'url' => array('/site/index')),
                        array('label' => 'About', 'url' => array('/site/page', 'view' => 'about')),
                        array('label' => 'Contact', 'url' => array('/site/contact'))
                    ),
                ));
                ?>
            </div><!-- mainmenu -->
            <?php if (isset($this->breadcrumbs)): ?>
                <?php
                $this->widget('zii.widgets.CBreadcrumbs', array(
                    'links' => $this->breadcrumbs,
                ));
                ?><!-- breadcrumbs -->
            <?php endif ?>

            <?php echo $content; ?>

            <div id="footer">
                Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
                All Rights Reserved.<br/>
                <?php echo Yii::powered(); ?>
            </div><!-- footer -->

        </div><!-- page -->

    </body>
</html>